package edu.nf;

import edu.nf.converter.UserConverter;
import edu.nf.entity.User;

import java.math.BigDecimal;
import java.time.LocalDate;

public class Main {
    public static void main(String[] args) {
        User user = new User();
        user.setName("user1");
        user.setAge(21);
        user.setCash(new BigDecimal("1000"));
        user.setBirth(LocalDate.now());

        var vo = UserConverter.INSTANCE.toUserVO(user);
        System.out.println(vo.getName());
        System.out.println(vo.getAge());
        System.out.println(vo.getBirth());
        System.out.println(vo.getCash());

    }
}